package com.sidianzhong.sdz.service;

import com.sidianzhong.sdz.model.*;
import com.sidianzhong.sdz.utils.PageInfo;
import com.alibaba.fastjson.JSONObject;
import java.util.List;

/**
* Created by hxgqh on 2016/1/7.
*/
public interface UserService {

    User create(User item);

    int delete(Integer id);

    int update(User item);

    User get(Integer id);

    PageInfo<User> getListWithPaging(Integer pageNum, Integer pageSize,
                                     String sortItem, String sortOrder, User item);

    List<User> getList(Integer pageNum, Integer pageSize,
                       String sortItem, String sortOrder, User item);

    PageInfo<JSONObject> getListWithObject(Integer pageNum, Integer pageSize,
                                           String sortItem, String sortOrder, User item);

    User getUserByPhone(String phone);

    User getUserByArea(String phone,String area);

    User getUserByCode(String code);
}
